package mysql

import "gorm.io/gorm"

type Doctor struct {
	gorm.Model
	Mobile   string `gorm:"type:varchar(50);not null"`
	Password string `gorm:"type:varchar(50);not null"`
}

func (d *Doctor) FindByMobile(db *gorm.DB, mobile string) error {
	return db.Debug().Where("mobile=?", mobile).Find(d).Error
}
